let __options = {
    data: [
        {
            id: 'OSPF', name: 'OSPF', type: 'OSPF',
            children: [
               
                {
                    id: 'OSPF2', name: 'STUB区域', type: 'STUB',
                    children:[
                        {
                            id: 8,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]
                        },
                        {
                            id: 20,
                            type: 'database',
                            name: 'ESdata',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 9,
                            type: 'database',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                },
                {
                    id: 'OSPF2', name: 'STUB区域', type: 'STUB',
                    children: [
                        {
                            id: 11,
                            type: 'database',
                            name: 'ESdata',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 13,
                            type: 'cloud',
                            name: 'ES13',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 18,
                            type: 'cloud',
                            name: 'ES16',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 17,
                            type: 'cloud',
                            name: 'ES222',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                },
                {
                    id: 'OSPF3', name: 'NSSA区域', type: 'NSSA',
                    children: [
                        {
                            id: 10,
                            type: 'database',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 14,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                },
                {
                    id: 'OSPF1', name: '骨干区域', type: 'GG',
                    children: [
                        {
                            id: 7,
                            type: 'app',
                            name: 'Redis',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 3,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]

                        }, {
                            id: 8,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]
                        },
                        {
                            id: 9,
                            type: 'database',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 10,
                            type: 'database',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        },
                        {
                            id: 11,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                }
            ]
        },
        {
            id: 'qqq1', name: 'IBGP', type: 'IBGP',
            children: [
                {
                    id: 1,
                    type: 'app',
                    name: 'monitor-web-server',
                    time: 30,
                    rpm: 40,
                    epm: 50,
                    active: 3,
                    total: 5,
                    code: 'java',
                    health: 1,
                    lineProtocol: 'http',
                    lineTime: 12,
                    lineRpm: 34,
                    group: [{ id: 'yellow', name: 'dsjafhkds' }]
                }, {
                    id: 2,
                    type: 'database',
                    name: 'Mysql',
                    time: 30,
                    rpm: 40,
                    epm: 50,
                    active: 3,
                    total: 5,
                    code: 'java',
                    health: 2,
                    lineProtocol: 'http',
                    lineTime: 12,
                    lineRpm: 34,
                    group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'qqq', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]

                },
                {
                    id: 3,
                    type: 'app',
                    name: 'Redis',
                    time: 30,
                    rpm: 40,
                    epm: 50,
                    active: 3,
                    total: 5,
                    code: 'java',
                    health: 3,
                    lineProtocol: 'http',
                    lineTime: 12,
                    lineRpm: 34,
                    group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]

                }
            ]
        },
        {
            id: 'qqq2', name: 'EBGP', type: 'EBGP',
            children: [
                {
                    id: 'qqq2-1', name: '联盟域', type: 'LMY',
                    children: [
                        {
                            id: 4,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'fff', name: 'dsjafhkds' }, { id: 'yellow', name: 'dsjafhkds' }]
                        },
                        {
                            id: 5,
                            type: 'database',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                },
                {
                    id: 'qqq2-2', name: '联盟域', type: 'LMY',
                    children: [
                        {
                            id: 6,
                            type: 'cloud',
                            name: 'ES',
                            time: 30,
                            rpm: 40,
                            epm: 50,
                            active: 3,
                            total: 5,
                            code: 'java',
                            health: 1,
                            lineProtocol: 'http',
                            lineTime: 12,
                            lineRpm: 34,
                            value: 100,
                            group: [{ id: 'qqq', name: 'dsjafhkds' }]
                        }
                    ]
                }
            ]
        },
       
        {
            id: 15,
            type: 'cloud',
            name: 'ES',
            time: 30,
            rpm: 40,
            epm: 50,
            active: 3,
            total: 5,
            code: 'java',
            health: 1,
            lineProtocol: 'http',
            lineTime: 12,
            lineRpm: 34,
            value: 100
        },
        {
            id: 16,
            type: 'database',
            name: 'ES',
            time: 30,
            rpm: 40,
            epm: 50,
            active: 3,
            total: 5,
            code: 'java',
            health: 1,
            lineProtocol: 'http',
            lineTime: 12,
            lineRpm: 34,
            value: 100
        },
        {
            id: 0,
            type: 'database',
            name: 'ES',
            time: 30,
            rpm: 40,
            epm: 50,
            active: 3,
            total: 5,
            code: 'java',
            health: 1,
            lineProtocol: 'http',
            lineTime: 12,
            lineRpm: 34,
            value: 100
        }
    ],
    edges: [
        {
            source: 0,
            target: 2,
        }, {
            source: 1,
            target: 2,
        }
        , {
            source: 1,
            target: 3,
        },
        {
            source: 11,
            target: 5,
        },
        {
            source: 10,
            target: 1,
        },
        {
            source: 0,
            target: 2,
        },
        {
            source: 11,
            target: 2,
        },
        {
            source: 5,
            target: 14,
        },
        {
            source: 12,
            target: 2,
        },
        {
            source: 15,
            target: 12,
        },
        {
            source: 16,
            target: 12,
        }
        // {
        //     source: 3,
        //     target: 9,
        // },
        // {
        //     source: 9,
        //     target: 14,
        // },
        // {
        //     source: 9,
        //     target: 13,
        // },
        // {
        //     source: 7,
        //     target: 9,
        // },
        // {
        //     source: 7,
        //     target: 10,
        // }

        // {
        //  source: 3,
        //  target: 2,
        // },
    ],
}